package com.eunion.boot.spring;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取application.propertis配置文件内容.
 * ProjectSettings projectSettings;  
 * 
 * @since 2016年12月23日
 */
@Component
@ConfigurationProperties(prefix = "project")
public class ProjectSettings {

	private String filePath;

	private String fileHttp;//http前缀

	public String getFileHttp() {
		return fileHttp;
	}

	public void setFileHttp(String fileHttp) {
		this.fileHttp = fileHttp;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
